﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Forms;


namespace wpfapp
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        //private FolderBrowserDialog folderBrowserDialog1;
        public MainWindow()
        {
            InitializeComponent();
            button1.Content = Properties.Settings.Default.Btn1_Name;
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {

        }

        private void pref_click(object sender, RoutedEventArgs e)
        {
            PopupWindow popup = new PopupWindow();
            popup.ShowDialog();
            //popup.Show();
        }

        private void btn1_click(object sender, RoutedEventArgs e)
        {
            OpenFileDialog fdlg = new OpenFileDialog();
            //fdlg.InitialDirectory = @"c:\";
            fdlg.InitialDirectory = Properties.Settings.Default.Btn1_FilePath;
            DialogResult result = fdlg.ShowDialog();
        }

        private void button2_Click(object sender, RoutedEventArgs e)
        {
            OpenFileDialog fdlg = new OpenFileDialog();
            //fdlg.InitialDirectory = @"c:\";
            fdlg.InitialDirectory = Properties.Settings.Default.Btn2_FilePath;
            DialogResult result = fdlg.ShowDialog();
        }

        

        private void button3_Click(object sender, RoutedEventArgs e)
        {
            OpenFileDialog fdlg = new OpenFileDialog();
            //fdlg.InitialDirectory = @"c:\";
            fdlg.InitialDirectory = Properties.Settings.Default.Btn3_FilePath;
            DialogResult result = fdlg.ShowDialog();
        }

        private void button4_Click(object sender, RoutedEventArgs e)
        {
            OpenFileDialog fdlg = new OpenFileDialog();
            //fdlg.InitialDirectory = @"c:\";
            fdlg.InitialDirectory = Properties.Settings.Default.Btn4_FilePath;
            DialogResult result = fdlg.ShowDialog();
        }

        private void button5_Click(object sender, RoutedEventArgs e)
        {
            OpenFileDialog fdlg = new OpenFileDialog();
            //fdlg.InitialDirectory = @"c:\";
            fdlg.InitialDirectory = Properties.Settings.Default.Btn5_FilePath;
            DialogResult result = fdlg.ShowDialog();
        }

        private void button6_Click(object sender, RoutedEventArgs e)
        {
            OpenFileDialog fdlg = new OpenFileDialog();
            //fdlg.InitialDirectory = @"c:\";
            fdlg.InitialDirectory = Properties.Settings.Default.Btn6_FilePath;
            DialogResult result = fdlg.ShowDialog();
        }

        private void button7_Click(object sender, RoutedEventArgs e)
        {
            OpenFileDialog fdlg = new OpenFileDialog();
            //fdlg.InitialDirectory = @"c:\";
            fdlg.InitialDirectory = Properties.Settings.Default.Btn7_FilePath;
            DialogResult result = fdlg.ShowDialog();
        }

        private void button8_Click(object sender, RoutedEventArgs e)
        {
            OpenFileDialog fdlg = new OpenFileDialog();
            //fdlg.InitialDirectory = @"c:\";
            fdlg.InitialDirectory = Properties.Settings.Default.Btn8_FilePath;
            DialogResult result = fdlg.ShowDialog();
        }

        private void button9_Click(object sender, RoutedEventArgs e)
        {
            OpenFileDialog fdlg = new OpenFileDialog();
            //fdlg.InitialDirectory = @"c:\";
            fdlg.InitialDirectory = Properties.Settings.Default.Btn9_FilePath;
            DialogResult result = fdlg.ShowDialog();
        }

        private void button10_Click(object sender, RoutedEventArgs e)
        {
            OpenFileDialog fdlg = new OpenFileDialog();
            //fdlg.InitialDirectory = @"c:\";
            fdlg.InitialDirectory = Properties.Settings.Default.Btn10_FilePath;
            DialogResult result = fdlg.ShowDialog();
        }

        private void button11_Click(object sender, RoutedEventArgs e)
        {
            OpenFileDialog fdlg = new OpenFileDialog();
            //fdlg.InitialDirectory = @"c:\";
            fdlg.InitialDirectory = Properties.Settings.Default.Btn11_FilePath;
            DialogResult result = fdlg.ShowDialog();
        }

        private void button12_Click(object sender, RoutedEventArgs e)
        {
            OpenFileDialog fdlg = new OpenFileDialog();
            //fdlg.InitialDirectory = @"c:\";
            fdlg.InitialDirectory = Properties.Settings.Default.Btn12_FilePath;
            DialogResult result = fdlg.ShowDialog();
        }

        private void button13_Click(object sender, RoutedEventArgs e)
        {
            OpenFileDialog fdlg = new OpenFileDialog();
            //fdlg.InitialDirectory = @"c:\";
            fdlg.InitialDirectory = Properties.Settings.Default.Btn13_FilePath;
            DialogResult result = fdlg.ShowDialog();
        }

        private void button14_Click(object sender, RoutedEventArgs e)
        {
            OpenFileDialog fdlg = new OpenFileDialog();
            //fdlg.InitialDirectory = @"c:\";
            fdlg.InitialDirectory = Properties.Settings.Default.Btn14_FilePath;
            DialogResult result = fdlg.ShowDialog();
        }

        private void button15_Click(object sender, RoutedEventArgs e)
        {
            OpenFileDialog fdlg = new OpenFileDialog();
            //fdlg.InitialDirectory = @"c:\";
            fdlg.InitialDirectory = Properties.Settings.Default.Btn15_FilePath;
            DialogResult result = fdlg.ShowDialog();
        }
    }
}
